<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>Real Home A Real Estate Category Flat Bootstarp Resposive Website Template | Suggestion</title>
    <link href="/myhouse/static/web/css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="/myhouse/static/web/js/jquery.min.js"></script>
    <!-- Custom Theme files -->
    <!--menu-->
    <script src="/myhouse/static/web/js/scripts.js"></script>
    <link href="/myhouse/static/web/css/styles.css" rel="stylesheet">
    <!--//menu-->
    <!--theme-style-->
    <link href="/myhouse/static/web/css/style.css" rel="stylesheet" type="text/css" media="all" />
    <!--//theme-style-->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="Real Home Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
    <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
</head>
<body>
<script src="/myhouse/static/web/js/easyResponsiveTabs.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('#horizontalTab').easyResponsiveTabs({
            type: 'default', //Types: default, vertical, accordion
            width: 'auto', //auto or any width like 600px
            fit: true   // 100% fit in a container
        });
    });
</script>
<!--header-->
<jsp:include page="/inc/head.jsp"></jsp:include>
<!--//-->
<div class=" banner-buying">
    <div class=" container">
        <h3>MYHOUSE</h3>
        <!---->
        <jsp:include page="/inc/menu.jsp"></jsp:include>
        <div class="clearfix"> </div>
        <!--initiate accordion-->
        <script type="text/javascript">
            $(function() {
                var menu_ul = $('.menu > li > ul'),
                    menu_a  = $('.menu > li > a');
                menu_ul.hide();
                menu_a.click(function(e) {
                    e.preventDefault();
                    if(!$(this).hasClass('active')) {
                        menu_a.removeClass('active');
                        menu_ul.filter(':visible').slideUp('normal');
                        $(this).addClass('active').next().stop(true,true).slideDown('normal');
                    } else {
                        $(this).removeClass('active');
                        $(this).next().stop(true,true).slideUp('normal');
                    }
                });

            });
        </script>

    </div>
</div>
<!--//header-->
<!--contact-->
<div class="feedback">
    <div class="container">
        <h3>反馈结果 </h3>
        <div class="feedback-top">
            <c:if test="${empty sessionScope.user}">
                <div style="display: flex;justify-content: center">
                    <span style="font-size: 40px">请先登录</span>
                    <span style="font-size: 15px ; position: relative ;position: relative;top: 100px "><a href="/myhouse/web/login" style="text-decoration: none">已加入MYHOUSE? 去登录>></a></span>
                </div>
            </c:if>
            <c:if test="${not empty sessionScope.user}">
                <table border="1px" style="height: 100px; text-align: center;">
                    <tr>
                        <th style="text-align: center;">我反馈的问题</th>
                        <th style="text-align: center;">处理情况</th>
                        <th style="text-align: center;">处理结果</th>
                        <th></th>
                    </tr>
                    <c:forEach items="${requestScope.feedBackList}" var="feedBack">
                        <tr>
                            <td>${feedBack.feedBack}</td>
                            <td>
                                <c:if test="${feedBack.dispose == false}">未处理</c:if>
                                <c:if test="${feedBack.dispose == true}">已处理</c:if>
                            </td>
                            <td>
                                ${feedBack.reply}

                            </td>
                            <td><c:if test="${feedBack.dispose == true}">结果不满意？<a href="/myhouse/web/suggestion">重新提交</c:if></a></td>
                        </tr>
                </c:forEach>
              </table>
                <div style="text-align: center; margin-top: 50px">
                    <c:if test="${requestScope.pager.pageNO gt 1}">
                        <a href="/myhouse/web/feedBackResults?pno=${requestScope.pager.pageNO-1}&&userId=${sessionScope.user.id}"><span class="span">上一页</span></a>
                    </c:if>
                    <c:forEach begin="1" end="${requestScope.pager.pageCount}" var="i">
                        <c:if test="${requestScope.pager.pageNO == i}">
                            <a href="/myhouse/web/feedBackResults?pno=${i}&&userId=${sessionScope.user.id}" style="color: red"><span class="span"style="margin-left: 50px" >${i}</span></a>
                        </c:if>
                        <c:if test="${requestScope.pager.pageNO ne i}">
                            <a href="/myhouse/web/feedBackResults?pno=${i}&&userId=${sessionScope.user.id}" style="color: black"><span class="span" style="margin-left: 50px">${i}</span></a>
                        </c:if>
                    </c:forEach>
                    <c:if test="${requestScope.pager.pageNO lt requestScope.pager.pageCount}">
                        <a href="/myhouse/web/feedBackResults?pno=${requestScope.pager.pageNO+1}&&userId=${sessionScope.user.id}"><span class="span" style="margin-left: 50px">下一页</span></a>
                    </c:if>
                </div>
            </c:if>

        </div>
    </div>
</div><style type="text/css">
    td{
        width: 900px;
    }
</style>
<!--//contact-->
<!--footer-->
<jsp:include page="/inc/footer.jsp"></jsp:include>
<!--//footer-->
</body>
</html>